Bmw 525i 1991

my bmw surges or cuts off intermitentantly, cuts off at red light unless I keep my foot on the gas and on the brake. A repair shop told me that I could have a vacuum hose that leaks or is not connected, the book says idle control sensor or throttle body. has anyone had this problem?