Minor bug fix when clearing input after sending