fixed parsing of inner shells