namcostr: Fix crash in debug build (nw)