fix bug on iPad