fixed bug where if an assignment has a position greater than the number of assignments, it would barf