fixes the upload problem