Fix stat math

Change-Id: Ie062175dc3e6a5c869f6c71e5821a426f41ce4e6