Fixed hg clone bug