Fix for uploading