computeLoudestFreq bugfix