fixed counter

counter now ends on correct min within the hour instead on always on the
closest hour