fix case sensitive template load