Fix slow query log