fixed time range bug