Fixing errors with upload.