Fix null packet bug