import changes from SM to allow the UFO file linked on issue 174 to be loaded without a crash.