fixed nested model duplication bug