fix version.valid_item_type? method