fix protocol mac error issue.