HW error calculation corrected