Fix broken attachment links (thanks Djamil)