typo in pattern compiler