Fixed problem when manually closing singl. popups.