added a possibility to let the IdManager fix duplicated and wrong formated element ids