model: fixup thread ID selection