Fixed critical packet sending bug.