Fix issue #9400, connect repo first time after creation so that init params could be written