fix for getting input text and error in send script