nit fix in upload_template