fixed a bug when resolving muliple ids