bugfix: in a cell query the insert action was null and the insert before action was the insert action
fixed the substitute node implementation in the state machine example