fixed some bugs in filters