Fix resume truncation bug for protocol 1.