fix factory.root(model) before merging
5.2.1