fix invisible popup on load