Gauge fixing on the lattice without ambiguity