small bug on nb.level for both trees