compiler: Fix generator pattern