fix relation array bug.'