(iOS) Fix major hanging bug