fix bugs for search
correct search for free time