fix versioning check