popup opening fix