Fix generation of parameters to method