"Pain" need not be a rigid designator, but instead may pick out a state by its causal role. If it is a rigid designator, then the apparent contingency of identity comes from imagining something else filling the causal role.