Fixed function call referencing. The referred function is resolved after code generation.