Fix template load path issue