fixed that badges are marked as selected in menu corectly