Fix upload problem, see issue #195.