fix for debug compile (nw)