fix a bug with version wildcards