Fixed the UI distortion bug.