Fixed resource uploading.