Fixed upload to synapse
Minor fixes