When rebuilding the state, there is not way to know if the end position has been enqueued from a previous session or in the current session. To ensure the count is always correct, it is always incremented by the rebuild logic.