-fixed small bug in tree plausibility check function