this is a pretty significant fix that correct the algorithm that calculates the new output of a unit.