fix a bug - now program does not crash when hyperspectral are loaded before an object is created