fix an assertion bug in BalanceScalesNode