fix service template bug