Add parentheses to port condition