fixed filter bug