fix for exception with list of indexed ids merging