fixed a bug in the change handler call