Fixed version counting.