fix defect, wrong variable name in log messages