fix: correct the version check