Since diff can be negative and sum of diff can be negative too. Change-Id: I822a4e90cc4fa06c796b7a87a776cf62a23a7621