fix mandatory attr.