Template custom function processing bug fixes