There are currently at least 2 threads on this topic, search please!
Hold the tilt button for 30-60 seconds. The sunroof will go through a reprogramming cycle. It happened to me and several others, it's no big deal.
Hope this saves you a trip to the dealer.
__________________
Legal Disclaimer: Anything I or anyone else says about my vehicle on this website(1addicts.com or any affiliated or nonaffiliated sites), pertaining to modifications, is only to gain acceptance from my/our peers, and does not actually represent anything actually existing on my car, and thus, cannot be held against me in any issues, i.e. warranty claims, that may arise.