codeblocks build
Fix handling of item ID