fix regression where passing a version was broken