fixed compile error (nw)