close the sunroof by whatever means,remove the motor from the roof leaving it connected electrically,operate the sunroof button until the motor stops by itself(basically it stops on the microswitch)reassemble and your issue will be over.mine had this issue,i also tried another motor without success.