change content-type and small fix in run