fixed rescoreAssignment()