fix crash on startup (nw)
fix crash on startup (nw)