fix up errors in iOS version