Fixed prefiltering bug