Fixed version variable bug