Fix popup displaying.