Fixed crash when loading an LXFML file