bugfix in spectrum