fixed bug which broke popups