fixed string checking bug, was preventing state preservation