fix MFD header parsing