Fixed bug in cookies