fix relation edit