Fix Ipad layout bug