Fixes call to wrong location for upstream template. Fixes #1290