fix some bugs in the handling of specified code system versions