fix running on iPad