Fix crash due to uninitialized variable (nw)