Fix operand order for choosing port