Sex change complicates commitment of offender