fix balanceAt()