fixed bad ref