finally fixed clone_type_method()