Fix repository cloning