Fixed readPoolByAccountId() implementation