Possibly resolved an NPE when the sim ends