bugfix on filter method for custom filterFunc. Closes #619