fix overflow

Change-Id: Iec7ebb9a53ae017a1d39628361d16db24e858b18