Some bugfixes in LP_spectrum.