fix bug with failed parses