Fixed most of the iOS stuff