template highlighting fix