Gauge fixing in the chain-by-chain method