Fixed the foldedSNR code.