removed bug of sender state machine:  last bit not transmitted