Fixed bad ref