fixed bug when cloning an inherited node