Try using a intermediary value in the change node;
[{"id":"3c3eae5.ea3d352","type":"change","z":"c53060.842a0fa","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"0","fromt":"str","to":"3","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"1","fromt":"str","to":"0","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"3","fromt":"str","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":1120,"wires":[["f6be0d0a.725f2"]]},{"id":"9fd5b2ee.1fa62","type":"inject","z":"c53060.842a0fa","name":"","topic":"","payload":"0","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":1090,"wires":[["3c3eae5.ea3d352"]]},{"id":"f6be0d0a.725f2","type":"debug","z":"c53060.842a0fa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":650,"y":1120,"wires":[]},{"id":"977b5120.e3654","type":"inject","z":"c53060.842a0fa","name":"","topic":"","payload":"1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":1140,"wires":[["3c3eae5.ea3d352"]]}]