Fix repo initialization