Fix the counting of the time blocks