fix the bug in clone method due to the changes in #69