[FIX] fixed reading of empty spectra