There was a problem with attaching two structures if one of them is periodic. This is fixed and tested now.