corrected filter to work without categories