Fix bug with cookies

Signed-off-by: 'kiyanov' <'kiyanov.alex@gmail.com'>