fix checkversion