fix onChange callback in goto function