bugfix delete tree with 1 element and counter