fixed loading bug with res_download