fixed a bug with the template paths