fixed wrong code generation for function with 1 param