Fix query log timer