Fix repo generation