fixed packet format BOF EOF bug