Fix bug on new file relationship creation