Fix a bug in the spectra viewer I found while writing the blog post about it.