one of your brake light bulbs is backfeeding power to the tallight circuit.
Start by taking out the bulb from the brake light one at a time and recheck if your problem is still occurring. when you determine which bulb is causing the problem take a good look at its base. the contacts on the bottoms may have become hot and melted across each other. Make sure that the bulb is a two filament bulb. good luck