Fix bad ref