Fix bug: req.cookies may undefined;