Fix bug on spectra plot option

Refs #10391
Merge branch 'feature/10391_moldyn_algorithm' into develop