Fixed reset of Send function