Fix repository download issue