Fixed Possible Crash scenario for iOS