fixes repository path
ensure that a new instance is returned