correctly match collection ids in both places