fixed a bouncing beaviour when the popup is shown