Fix related agents throwing exception upon create (frontend only)