fixed DEBUG compilation (nw)