fix adam consensus bug