Fixed the version checking