fix for metadata issue with wrong/conflicting id's