Fixed an issue where a variable was not defined.