Fixed crash on iOS 5.1.1