fix for express 4 res.send error