fix a ref