remove res.headerSent patch