Fix popup positions