fix subprojects are not copied correctly

[``* `#15173` Subprojects are not copied correctly``](http://www.openproject.org/work_packages/15173)