Blank template fixed
Query logging fixed