fixed potential memory leak...