Fix popup closing
0.5.3