bugfix for deletion of root