Changed position of clear receive buffer