Methods and devices are provided for preventing binding between components of a drive assembly of a surgical device. In an exemplary embodiment, a surgical device is provided having a ball-and-socket joint that allows bending of various drive shafts relative to the handle without causing movement of a drive rack disposed within the handle. Since the drive rack does not move in response to bending of the shaft, the drive gear and rack will remain aligned thus preventing jamming of the device.