time range bug