fixes for ios-detection