The fact that the light bar lights up means that it works. If the fault is consistent, I'd be more tempted to look for the fault at the brake pedal - where the switch for the light is - if your normal brake lights do the same.