Anneal-path correction in flux qubits