fixed bug with datastore upload