correction automatic id numbering for objects