Fix the SetState command.