Fixed pagination bug in object filtering by type