Fix backtracking issue.