Fixed loadPluginTemplate flag issue.