Fix bug for id attribute definition

Now id attribute can be defined and customized explicitly