Fixed bug, where cookies was not set