fix some UI glitch