fix exception in savestate command