Bug fixes. Z_O_O will be decoded as ZO instead of ZOO. To fix this, prev_id should update every time.