Fix iOS popup closing