fix variable name inconsistency