Fixes send buffer going out of scope, references #209