fix before filter bug