you've got a bad earth on the rear lights. if you take out the connections on the rear lights you will probably find corrosion on the pins. Clean them up with some electrical cleaner and make sure the pins have got a good connection with one another.
that should do the job.