Fixed a bug in the IDCreator.