Fixed a nasty bug with iPads