whoops used wrong varname
scripted update of code from master at 4eb735f whoops used wrong varname