quick fix
spectrum calculator fixes