Fixed timing issue in hourly average