cs - hdf_remove_tree() bug fix