Fixed a bug

Fixed cookie bug