Fixed loading of the popup