fix not_in_pval and not_in_ld handling. fixed bug in filter.py