Fixed crash on iOS 6