Fixed typo when restoring state