fix the filter bug