fix: wait for cloning before continuing