Fix generator example