fixed some errors in init template.