Fix duplicate protocols issue.