fixed memory usage for 3.14