Fixed a mistake where smoothedPG did not work properly when called
with parameter 'frequencies = 0'.