Fix filter bug