fix addr len bug