fix potential name conflict in case a same prior resource is imported many times in inputs