Fix use of wrong variable name