Fixed error when uploading