Tate module and bad reduction