Fixed a bug in SIM change handling.