fixes to postprocess_spectrogram