fix iOS 7 support

fix Crash on iOS 7