Fix the bad version check