fixed the problem of attribute extraction