Fix function arguments for insert generator