Fix rollover bug in time accounting.