fixes for the <id> field