Fixed issue when popup is shifting.