fix unwanted backtracking