Fixed the import version function