Proper filtering of attic elements: item and id-query.