Fixed version compare method