Fix NaN% correct issue

Change-Id: Ib6dde27a1e301e533f943fd7fda735ad5156d13f