fix for overflow on recursive nodes