fix spectrum