fix meanByHour