Fixed some errors in actTemplate