Fixed save states on Windows