fixed uninitialized variables (nw)