fix the package version check