fixed bug in diff calculation

Change-Id: I90f52da75d7727a5b6114328fd5b7c798544d2f7
fixed display bug

Change-Id: Ic1a29450a24795ecc35cfe247555b95d90392433