Fix bug with concurrent upload of manifests