Fix bug in reduceState helper
Fix bug in reduceState helper

all3dp/printing-engine-client,all3dp/printing-engine-client,all3dp/printing-engine-client,all3dp/printing-engine-client,all3dp/printing-engine-client,all3dp/printing-engine-client