Fixes intermittently failing memory buffer test.