fix crash in SDFPrint