Model: bug fix on __analyzeRelation