Fixed an issue with wrong variable name.