Fixed an issue with time granularity