Fix bug in nmr spectra simulation