It is not a good idea to call internal function (with "--" in name) from
a different file. Such functions are a subject of change without notice.

`org-macro-templates' is always initialized when Org mode is active, and
you can rely on its value.

Thanks for letting me know. The reason I chose that method is because the org-macro-templates are not updated immediately after I change the title and save the file. However, I think I found a solution using org-macro-initialize-templates and org-macro-templates. Please see the attached patch. Hope this is OK, otherwise please let me know how to improve.

Duy