auto-correct assignment, if it has the right solution