Fixes a crash when Build to iOS8 SDK and runnned on iOS7