Fixed wrong naming.
Changed `ondata_error` naming.