fix some bug for iOS8