Change HITTypeId assignment method to resolve rare warning (closes #17)