fix the local repository