fix call generation