some minor bug fix for initial display of spectrogram