Fixed a bug in AutoDetect and update the version number.