fix dupes and parse error