Minor fixing on the code generation of method calls