Fix crash on iOS 7 (fix #42)