fix a bug caused by template change