bug fix

fix the bug, cookie can't restore