Corrected bug with Qgs calculation for nuclei out of hempel array bounds