fix for IDs that get lost from index after correction