Gauge-fixing ambiguity and monopole number