fix a few bugs: navigator; cookie