fix computation of digital control