fix bits of the train decoder