Fix bad reference variable.