Shulkers spawned attached to the groud attaches themselves to a wall after another shulker is spawned
The bug
If a shulker is spawned near a block, it attaches itself on the surface, but if spawning another shulker, both will attach themselves to the block as if it is a wall. Breaking the block would cause one of them to teleport while the other re-attaches itself to a nearby solid block.