Solved problem with filtering