Fix repository generation