bug fix in saving the last PB sequence assigned
bug fix in computing of sequence_number, used to normalize PBs frequencies