Fixes a problem where string IDs weren't converted to ObjectIDs