fixing state for LINQ comprehension