Fixes local repository bug.