fix foy glitch