fix referer and manifest