bug fixed: in packet receiving