bugfix first_hour_average