I had the problem last year, intermittent fault.
It wouldn't level if starting up normally but once driving along, if I cycled the ignition off and on, it seemed the vibrations of moving along made it level good. in the end I found it was the plug on the back of the light wasn't fully pushed home.