Fixing local add template issue.