Quite possibly the microswitch in the top latch setup. Do the windows go down ~2 inches, just like when you pull the top latch prior to opening? If so it's likely the microswitch. You may want to spray some compressed air in the opening to remove dust that accumulates on the contacts.
The easiest solution is to put the windows down when the top is down.