My 1997 Nissan maxima brake lights stay on when after the car is off and don't turn off when the car is on?

Check the brake pedal switch that is activated on the brake pedal arm. The switch is activated when it is pushed in when the driver lets off the brake and the arm comes up. There is a hole that is plugged with a small black plastic cap. on my Maxima that cap broke. I was able to find a bolt that would fit inside it with a washer and nut on the back to close it up again. strange design but a cheap easy fix.