fix typo, dump state when changed