fix of a bug related to wrong variable name