bugfix --> a memory leak