TimeReportDao.search method fixing logic