fix freqdev parameter error

freqdev was only set if it was the last argument given. this was not
intended.