Fix API argument generation.