Fixed EOF error when MTTNYZ=0.