erlterm memory leak fixed