Fixed a bug in the logic for determing what hours to rollup