fix bug for iOS7