Fix sending UDP packets