fix error variable name