fix bug

fix bug when running on iOS 7.0+