fixed an issue with multiple popups and diffenent types at the same time