Fixed an issue where a variable is not found.