fixed the double sending of text bug