fixed UI glitch