fix problem in enrollday_sql cumulative sums