Repository error fixing