fix crash in office format