Fix bug where last line of composer is not sent out