fix relation issue