Make filters behave correctly with protected areas (fixes #74)