Fixed to work on iPad