fixed a bug with hyperspectral