fixed bugs in clone klass