- bugfix for memory leak