bug fixes for iOS