Make sure the buffer is dynamic all the time