Fix repo initialization.