Fix compatibility with go1 issue.