Was accidently setting the buffer size then unmapping at that new size. Make sure to unmap then resize. Also cleans up which buffer is actually being touched here, only the initial buffer ever changes here.