Fixed bug when creating SIM