Emi - fix crash genPDF NM4