Fixed minor bug in CalStructGet().