Fix a bug on iPad