Fix for null weighting in spectrogram