Fixed bug that caused occasional issues when running global-sigma mode
in conjunction with the spike-prior code.