Fix an undefined variable error