bug fix: memory usage clear