fix #2. sign cookie write file error.