task#5006 fix relation in some model