Fix the history of an attachment (minor fixes)