Fixed variable name to match old code.