fix variable name mistakes