fixed a filter bug