corrected bug in copy_structure3(). This caused bad encodings.