fix resized popup position