Fixed bug involving template paths