Fix bug: onChange trigger on error event.