Fix errors preventing existing repositories from working.