Fixed undesired caching of templateOptions.