Fix sometimes crash on launch on iOS 6