fix bug in saving format id's

refs #4769