fix fetch of repository