Fixed the correction for negative edge-bias calculation