Fixes excess memory usage bug introduced in v6.56.