Bug fix #410: structure's state machines can be duplicated and correctly moved