correcting path to template