fixed bugs in log search