fix bug for bit or calculate