How to reproduce:
- Place walls with gates inbetween them, horizontally and vertically; make sure to place more than one or two because this bug does not always occur
- Connect the walls with red/green wires and change their circuit behaviour in any way (e.g. enable read sensor to see the blue lamp on them to detect faulty walls faster)
- Copy-paste the walls to another location
- Undo your paste action and then redo it (whether you redo it once they got deconstructed or not does not really matter, in both cases circuits may get deleted)
- Check the circuits in your redone walls
A mostly random number of walls will have their circuit settings reverted to standard, breaking potential setups and making them unuseable.