fixing stuff for ios