Fixed wrong paths to templates, fixes #764