Fix sendMethod to not reuse a buffer while its being written