added some robustness around missing record values in fit file