really fix version check logic