shunyuan patch - should fix crash when loading UNIF format