Apply filter in the right way.