Fix backward compatibility lost in IdTool.py