fix issue with creating new relations