fix zeroing of speed on connection loss