bugfix for copying inner roots
some bugfixes related to inner roots
release-0.5.1