The sunroof has an initializing process.
Press and hold the sunroof in the "lift" position the roof will go up, keep holding for about 15sec and then the roof will move another half inch or so up
Keep holding the switch in the lift position, the roof will then close, then slide open all the way, and then close again
The process is then complete
Do not release the button untill the process is completely finished, else you would have to start over again