Fix crash on ODF load