Resolve some type issue.