fixes a fatal bug to parse a string; revert #1