Fix repository fetch