Fixed version check