Fix the history of an attachment