fix document and hard-corded-attribugtes