Fixed bad ref to nonexistent var