[Bugfix] fixed bug where type was not copied when cloned