Fixed version check condition.