Fix for saving/loading templates with multiple entries
Example using template with index