fix remote ref