Fix work with old format.
Assertion about restlen.