fix bugs in ParentsSpecialCasesPlugin