Fixed crash on iOS 5.x.