Fix build model with relation-many