fix iPad/iPhone compat