Fix semantic issue by add specified attribute