correct a bug not to detect installed version.