Fix UDP sequence handling