Fixed borked refactoring: variable name mismatch