fix resending buf_len counter