fix varname errors.