fixed bug in cloneAction which caused parent to be NULL