Fix found logs query