Fix valueChanged handler