fix a few wrong variable names