Compensating for errors caused by disturbing torque