fixed the GGA bug for closed shell