Fixed empty cookie error