Fix bad refs.