fixed crash when running ultrinit (nw)