fixed some bugs with filtering