Fix generation of functions with default names