Fix iOS to iOS crash