fixed incorrect index for per atom average over angular momenta