Small bug fix for template rest service