fix get cookie error problem