fix type of the name attribute in the doc