Fix packet sending