fix ui glitch