your bulb is either in wrong in the socket, or is the wrong bulb.. when you apply your brakes, the power to the light is being transferred to the headlight system ( the other terminal in the lights) check the holder etc, and the connector on the back of the cluster.. its wise to remove the other side which you didnt replace and use it for reference.. hope this helps!
Tom Yates
May 2008