fixed a bad ref