Fixed typo in string scan restoration