template html bug fixed