fixing machine inactive state to just print 0