Fix for iPad bug