Tail light factory defect

Out riding tonight buddy noticed brake light wasn’t working but was staying bright. I always thougt it was bright but never paid it no mind. It was like it was stuck on. So we get back to his place checked the switches everything checked out. So we pull the rear rack to the tail light. he switches the plug ins from the machine to the light what do u know now it works properly. I look at them and the colors are matching. So it was plugged wrong from day one. Must of been colorblind when they was plugging them in or just messing around…lol