author-element code repair