Method and apparatus is provided, the operation of the combination driving device between component is prevented. In one exemplary embodiment, a kind of surgical device is provided, which has ball-and-socket joint, moves driving rack setting without reason in handle relative to handle for allowing to be bent various drive shafts. Because bogie will not be responsive to the bending degree of axis, drives gear and rack gear that will keep being aligned, thus prevent the interference of device.