fixed crash at startup (nw)