Fixed minor bug in atomBalance