nat: correct thread index usage