fixed bugs in new clone