dem upload_fix