Fix version check bug.