Popup was hidden behind a mask if switched tabs before popup fully showed, to fix this, popup is forced to show over mask when created.