Fixed bug in sparse array change handler