fix overflow issue.