Correcting template paths