some mmore bugfixes for ios