another fix for upload