ios compat fix