Minecraft wiki entry for Redstone_Torch, associated text: Attempting to attach a redstone torch to an invalid surface can cause it to "snap" to a valid surface adjacent to the same space. For example, if a fence is on the ground, attempting to attach a redstone torch to the side of the fence causes the redstone torch to be attached to the top of the ground next to the fence instead.