fix bug in sender