fixed uploaded state bug in synapse monitor script

this branch is only for fixing the synapse "uploaded" stat flow bug, feel free to do it in whatever way you want (or not use this at all)