fix setcookie bug