fix nearCallback arithmetic exception