Fixing upload error