fixed type-specific filtering (documents / tasks)