quick fixes

minor fixes to get this working on IOS