Fixed an issue with firefox, where the popup would not show