Fixed issue with first upload failing