changed error event from ERROR to error.