Fixed loading of the popup

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