fixed a ref