fixed the filter bug