bugfixes for ios