fixed bug with variant filtering