Fix a off-by-one bug in the new difficulty code.