Fix crash on iOS7