fix show only elements which belong to the category