Fix order of pids in pids.txt, fix umdmpids.txt generation error