fix package template bug