fix rmk logic for cases vector sets are not empty