little correct in saveToRepo