Fixed bugs in fit peak.  Refs #7788.