Fix active hour always set to first hour of the day