fixes association of commits and releases

Broke this in a past refactoring. Some recent releases got 0s,
but previous counters were correct.