Fixed crash for 5th. iOS versions

Resolves #49