fix bug for iOS6