Fix inserting new messages at the end of the text widget