fixed a version check.