Bug fix: variable name mismatch