fixed backtracking for local Gotoh