Fixed error in getting Accounts