Fixed errors on iPad