clearing statistics for internal nodes