Fix behavior under iPad and iPhone