fix "two max magnitude spetra get wrong"