Fix the copying of topic attachment data