fix bug for bitzero of buf and counter