Added small fix to prevent multiple relations