Fix a device resetting bug when state loaded