Fix bug of not found time index