fix bug in SpecialCasesPlugin