Fix multiple upload problem