fixed compareVersion