I'm guessing you're drawing the initial panels over a "blank screen" so they are being turned off but the engine isn't updating it's image,

at the start try using
Code:
level_load("");
this will create a blue background and hopefully sort your problems

hope this helps