fix cost if deprecation_kind is None