fixes to spectral cube definition