Fix Duty Cycle bias, and a extra negative on error calculation