Fix judge of new version
Fix logic