fixed bug relating to filtering fields