fixed dynamic node addition to behave properly with node states