fix boolean expression erro regarding protocol auto-completion