Fix issue with popups not opening