fix scanAttr