Fix compilation errors due to misnamed variable.