Corrected filtering on sidebar items