fixing c# not working for filtering