path to templates fixed