Fix bug with saving services linked to model templates