Fix the variable name of the error log