bad ref