fix packet len bug