Fixing problem with calling next() after res.send()