Fixed a bug in cookie values