fix iPad bug with overflow