Fix bug with mirrored repos