fix can not open template bug