Fixed loading of the popup

This is the fix I did for the popup to load, this should help people out.