Fixed typo in SaveState() and LoadState()