Fixed bad ref in script