Fix filterFunction followed by filterRange.

Fixes #93, #94.