Fix upload error, see issue #190.