fixes for ios devices