ui: prevent empty last line