fixed crash (nw)