Fix mistake in considering orphan balance as part of total earned.