fix NPE in onChange when in forked execution