Make integer check more accuracy.