Fix some minor bugs in UI.

Clear extra lines