fixing template paths