Fixed the async issue with cloning git repo