Underscore in variable name causes "not defined"