Fixed issue limiting each relation type to 1 relation