fix refs to pkg.compare
Merge pull request #3493 from archtaku/issue3492

fix refs to pkg.compare