Fix popup issue of not loading