Fixed the modality of the popup window