Fixed some UI glitches.