Fixed error when version name contains a hyphen