fixed lastSequenceId