Fixed weird switchWall glitch