getbalance bug

getbalance returned a random huge number for any account except '' due to the reason that nGenerated in GetAccountBalance is not initialized