fixed packet counter problems