relation_metadata fix