Fixed type error for PatternRule