Fixed cookie saving.