Fix problem with onChange event.