Added some fixes for iPad and iPhone.