fixing upload error