fixing minor IOS bugs