NXP-15145: fix retrieval of selected items from buckets in case of directory