current-errors variable name fix